package com.rimi.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rimi.bean.MenuBean;
import com.rimi.dao.MenuDao;
import com.rimi.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService {
	@Autowired
	private MenuDao md;

	@Override
	public List getMenuByRoleId(int id) {
		List list = md.getMenuByRoleId(id);
		return list;
	}

	@Override
	public List getMenuInfo() {
		return md.getMenuInfo();
	}

	@Override
	public void change(Integer i) {
		// TODO Auto-generated method stub
		md.change(i);
	}

	@Override
	public MenuBean getMenuByMenuId(Integer i) {
		
		return md.getMenuByMenuId(i);
	}

	@Override
	public void change2(Map map) {
		md.change2(map);
		
	}

	@Override
	public void delRole(Integer isok) {
		// TODO Auto-generated method stub
		md.delRole(isok);
	}

	@Override
	public void addIn(MenuBean mm) {
		// TODO Auto-generated method stub
		md.addIn(mm);
	}

}
